DEFINITION FOR LIBRARY MODULE Translator ;

FROM SYSTEM IMPORT ADDRESS, STRING ;

(* Translator error return codes *)
CONST
  TR_NotUsed = -1 ; (* This is an oft used system rc *)
  TR_NoMem   = -2 ; (* Can't allocate memory	     *)
  TR_MakeBad = -4 ; (* Error in MakeLibrary call     *)

VAR
  TranslatorBase : ADDRESS ;

PROCEDURE Translate( inputString  : STRING ;
		     inputLength  : LONGINT ;
		     outputBuffer : STRING ;
		     bufferSize   : LONGINT ) : LONGINT ;

END Translator .
